<?php
defined('IN_ADMIN') or exit('No permission resources.');
include $this->admin_tpl('header', 'admin');
?>
<div class="pad_10">
    <div class="table-list">
        <br>
        <div class="col-md-10">
            <form id="myform" method="post" action="?m=goods&c=goods&a=goods_add" role="form">
                <table width="100%" class="table_form">
                    <tr>
                        <td width="80" align="right">商品标题</td>
                        <td class="y-bg"><input type="text" name="name" size="30" class="input-text"></td>
                    </tr>
                    <tr>
                        <td width="80" align="right">商品描述</td>
                        <td class="y-bg">
                            <textarea rows="8" cols="50" name="desc"></textarea>
                        </td>
                    </tr>
                    <tr>
                        <td width="80" align="right">商品类型</td>
                        <td class="y-bg">
                            <select name="goods_type">
                                <?php foreach ($type as $val){?>
                                <option value="<?=$val['id']?>"><?=$val['name']?></option>
                                <?php }?>
                            </select>
                        </td>
                    </tr>
                    <tr>
                        <td width="80" align="right">单价</td>
                        <td class="y-bg"><input type="text" name="price" size="30" value="0.7" class="input-text"></td>
                    </tr>
                    <tr>
                        <td width="80" align="right">库存数量</td>
                        <td class="y-bg"><input type="number" name="reserve" size="30" class="input-text"></td>
                    </tr>
                    <tr>
                        <td width="80" align="right">发货方式</td>
                        <td class="y-bg">
                            <select name="ship">
                                <option value="1">全部</option>
                                <option value="2">自动</option>
                                <option value="3">手动</option>
                                <option value="4">QQ选号</option>
                            </select>
                        </td>
                    </tr>
                    <tr>
                        <td width="80" align="right">腾讯游戏</td>
                        <td class="y-bg">
                            <label><input type="radio" checked name="game" value="1"> 能玩DNF </label>
                            <label><input type="radio" name="game" value="2"> 不能玩DNF </label>
                            <label><input type="radio" name="game" value="3"> 未过滤 </label>
                        </td>
                    </tr>
                    <tr>
                        <td width="80" align="right">号码长度</td>
                        <td class="y-bg">
                            <label><input type="radio" checked name="num_type" value="1"> 5位 </label>
                            <label><input type="radio" name="num_type" value="2"> 6位 </label>
                            <label><input type="radio" name="num_type" value="3"> 7位 </label>
                            <label><input type="radio" name="num_type" value="4"> 8位 </label>
                            <label><input type="radio" name="num_type" value="5"> 9位 </label>
                        </td>
                    </tr>
                    <tr>
                        <td width="80" align="right">号码等级</td>
                        <td class="y-bg">
                            <label><input type="radio" checked name="level_type" value="1"> 0-3级 </label>
                            <label><input type="radio" name="level_type" value="2"> 4-7级 </label>
                            <label><input type="radio" name="level_type" value="3"> 8-15级 </label>
                            <label><input type="radio" name="level_type" value="4"> 16-31级 </label>
                            <label><input type="radio" name="level_type" value="5"> 32-47级 </label>
                            <label><input type="radio" name="level_type" value="6"> 48级以上 </label>
                        </td>
                    </tr>
                    <tr>
                        <td width="80" align="right">号码QQ龄</td>
                        <td class="y-bg">
                            <label><input type="radio" checked name="year_type" value="1"> 1-3年 </label>
                            <label><input type="radio" name="year_type" value="2"> 4-6年 </label>
                            <label><input type="radio" name="year_type" value="3"> 7-10年 </label>
                            <label><input type="radio" name="year_type" value="4"> 10年以上 </label>
                        </td>
                    </tr>
                    <tr>
                        <td width="80" align="right">号码好友数</td>
                        <td class="y-bg">
                            <label><input type="radio" checked name="friend_num" value="1"> 1-100 </label>
                            <label><input type="radio" name="friend_num" value="2"> 100-300 </label>
                            <label><input type="radio" name="friend_num" value="3"> 300以上 </label>
                        </td>
                    </tr>
                    <tr>
                        <td width="80" align="right">号码类型</td>
                        <td class="y-bg">
                            <input type="hidden" name="action" value="goods_add">
                            <label><input type="radio" checked name="type" value="1"> 令牌 </label>
                            <label><input type="radio" name="type" value="2"> 未过滤 </label>
                        </td>
                    </tr>
                    <tr>
                        <td width="80"></td>
                        <td><input type="submit" value="提交商品"></td>
                    </tr>
                </table>
            </form>
        </div>
    </div>
</div>
